#!/bin/bash
mkdir -p ~/.wlou/postgresql/data
VERSION=$1
git tag $1
git push --tags
docker login ccr.ccs.tencentyun.com --username=100025936624 
docker build -t ccr.ccs.tencentyun.com/tcb-100025936624-yljk/ca-mqgwcoko_tctw:${VERSION} .
docker push ccr.ccs.tencentyun.com/tcb-100025936624-yljk/ca-mqgwcoko_tctw:${VERSION}
docker run -d --name=wlou1 --restart=always -p 9090:9090 -p 5432:5432 -v ~/.wlou/postgresql/data:/var/lib/postgresql/data ccr.ccs.tencentyun.com/tcb-100025936624-yljk/ca-mqgwcoko_tctw:${VERSION}